/*
package com.yinNuo.collectWool.Task;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yinNuo.collectWool.collectWoolHttp.ZhongQingHttps;
import com.yinNuo.collectWool.core.constant.Costant;
import com.yinNuo.collectWool.mobileApi.entity.UserDoTask;
import com.yinNuo.collectWool.mobileApi.service.UserDoTaskService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

*/
/**
 * @author: yinNuo
 * create at: 2021/12/12 下午8:38
 * @description: 中青看到定时任务
 *//*

@Component
@EnableScheduling
@Slf4j
public class ZhongQingTask {
    @Autowired
    ZhongQingHttps zhongQingHttps;
    @Resource
    private UserDoTaskService userDoTaskService;

    */
/**
     * 中青看点读文章
     *//*

    @Scheduled(cron = "0 0/1 * * * ? ")
    public void readContent() {
        List<UserDoTask> list = userDoTaskService.list(new QueryWrapper<UserDoTask>().eq("wool_task_id", Costant.ZHONGQING_ID));
        for (UserDoTask userDoTask : list) {
            if (userDoTask.getWoolTaskDetailId() == 1) {
                String s = zhongQingHttps.readContent(userDoTask.getToken());
                log.info("中青看点结果{}", s);
                try {
                    Thread.sleep(Costant.SLEEP_TIME_MINUTE);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        }

    }


}
*/
